package com.lwy.qiuchao.auth.feign;

import com.lwy.common.utils.R;
import com.lwy.qiuchao.auth.vo.UserLoginVo;
import com.lwy.qiuchao.auth.vo.UserRegistVo;
import com.lwy.qiuchao.member.entity.MemeberEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author shkstart
 * @date 2020/12/03 -16:01
 */
@FeignClient("qiuchao-member")
public interface MemberFeignService {
    @PostMapping("/member/memeber/regist")
    R regist(@RequestBody UserRegistVo userRegistVo);

    @PostMapping("/member/memeber/login")
    R login(@RequestBody UserLoginVo userLoginVo);

    @GetMapping("/member/memeber/hasToken")
    MemeberEntity hasToken(String username);

    @GetMapping("/member/memeber/queryInfoByToken")
     MemeberEntity memberInfo(String token);
}
